<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        
        li {
            list-style: none;
        }
        
        .header {
            width: 100%;
            background-color: #323232;
            /* height: 48px; */
            color: #9b9b9b;
        }
        
        .logo,
        .nav {
            float: left;
        }
        
        .logo {
            margin-right: 28px;
        }
        
        .nav li {
            float: left;
            width: 88px;
            text-align: center;
            line-height: 48px;
        }
        
        .nav li:hover {
            background-color: #dd4012;
            cursor: pointer;
        }
        
        .call {
            float: right;
        }
        
        .call li {
            float: left;
            margin-left: 16px;
            cursor: pointer;
            line-height: 48px;
        }
        
        .header_a {
            width: 1103px;
            margin: 0 auto;
            height: 48px;
        }
        
        .banner {
            background: url(img/banner.png);
            height: 220px;
            margin-top: -2px;
            left: 0;
        }
        
        .banner .banner_bottom {
            position: relative;
            height: 28px;
            background-color: rgba(0, 0, 0, 0.2);
            bottom: -192px;
        }
        
        .banner .banner_bottom ul {
            position: relative;
            left: -210px;
            color: #a6a6a6;
            line-height: 28px;
        }
        
        .banner .banner_bottom ul li {
            float: left;
            margin-right: 5px;
        }
        
        .content {
            background-color: #f0f1f1;
        }
        
        .center {
            width: 1103px;
            margin: 0 auto;
            overflow: hidden;
        }
        
        .content_nav {
            margin-top: 25px;
            height: 28px;
        }
        
        .content_nav li {
            width: 78px;
            height: 28px;
            line-height: 28px;
            text-align: center;
            color: #939393;
            background-color: white;
            float: left;
            cursor: pointer;
        }
        
        .content_nav li:hover {
            background-color: #636363;
        }
        
        .projects {
            margin-top: 28px;
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
        }
        
        .projects dl {
            width: 260px;
            background-color: white;
            margin-bottom: 20px;
        }
        
        .projects h5 {
            font-size: 16px;
            margin-top: 15px;
            margin-left: 15px;
            margin-bottom: 11px;
        }
        
        .projects p {
            color: #b2b1b1;
            font-size: 10px;
            border-top: 1px solid #f7f7f7;
            padding-top: 9px;
            padding-left: 14px;
            padding-bottom: 19px;
        }
        
        .content_bottom {
            padding-top: 48px;
            width: 252px;
            margin: 0 auto;
        }
        
        .content_bottom img {
            height: 12px;
        }
        
        .content_bottom li {
            color: #b2b1b1;
            width: 37px;
            height: 37px;
            float: left;
            cursor: pointer;
            background-color: white;
            line-height: 37px;
            text-align: center;
            margin-left: 5px;
        }
        
        .content_bottom li:nth-child(3) {
            background-color: #dd4012;
        }
        
        .content_bottom li:hover {
            background-color: #dd4012;
        }
        
        .footer {
            background-color: #323232;
            height: 83px;
        }
        
        .footer_a {
            width: 1103px;
            margin: 0 auto;
            position: relative;
        }
        
        .footer_logo {
            margin-top: 27px;
            float: left;
        }
        
        .footer_nav {
            float: right;
            color: #999999;
            font-size: 12px;
        }
        
        .footer_nav ul {
            height: 12px;
            margin-top: 28px;
            margin-bottom: 10px;
        }
        
        .footer_nav li {
            float: left;
            margin-left: 5px;
            cursor: pointer;
        }
        
        .root {
            font-size: 12px;
            color: #666666;
            position: absolute;
            right: 0;
            top: 50px;
        }
        
        .tem_dl {
            display: none;
        }
    </style>
</head>

<body>
    <div class="header">
        <div class="header_a">
            <div class="logo">
                <img src="img/logo.png" alt="">
            </div>
            <ul class="nav">
                <li>网站首页</li>
                <li>传悦资源</li>
                <li>传悦案例</li>
                <li>传悦服务</li>
                <li>解决方案</li>
                <li>需求提交</li>
            </ul>
            <ul class="call">
                <li><img src="img/dianhua.png" alt=""> 0535-60652189</li>
                <li> <img src="img/qq.png" alt=""></li>
                <li> <img src="img/weibo.png" alt=""></li>
                <li><img src="img/weixing.png" alt=""></li>
                <li><img src="img/Email.png" alt=""></li>
            </ul>
        </div>
    </div>
    <div class="banner">
        <div class="banner_bottom">
            <ul>
                <li>网站首页 ></li>
                <li>传悦案例</li>
            </ul>
        </div>
    </div>
    <div class="content">
        <div class="center">
            <ul class="content_nav">
                <li>全部</li>
                <li>网站建设</li>
                <li>推广运营</li>
                <li>品牌策划</li>
                <li>网络全案</li>
            </ul>
            <div class="projects">
                <dl class="tem_dl">
                    <dt><a href=""><img src="" alt=""></a></dt>
                    <dd>
                        <h5></h5>
                        <p>

                        </p>
                    </dd>
                </dl>

            </div>
            <ul class="content_bottom">
                <li><img src="img/left.png" alt=""></li>
                <li>1</li>
                <li>2</li>
                <li>3</li>
                <li>4</li>
                <li><img src="img/right.png" alt=""></li>
            </ul>
        </div>
    </div>
    <div class="footer">
        <div class="footer_a">
            <p class="footer_logo">
                <img src="img/logo1.png" alt="">
            </p>
            <div class="footer_nav">
                <ul>
                    <li>关于传悦</li>
                    <li>新闻动态</li>
                    <li>传悦观点</li>
                    <li>联系传悦</li>
                    <li>加入传悦</li>
                    <li>付款账户</li>
                </ul>

            </div>
            <p class="root">
                sadfasdgasdg 阿萨德路口附近哪里sadfkas || 撒打奥斯卡积分sad 发的asdf
            </p>
        </div>
    </div>
    <script src="jquery.min.js"></script>
    <script>
        $.ajax({
            url: 'http://127.0.0.1:8080/message',
            data: {},
            success(data) {
                console.log(data)
                for (let i = 0; i < data.length; i++) {
                    $('.tem_dl').clone(true).removeClass('tem_dl').appendTo($('.projects'));
                    $('a').eq(i + 1).attr('href', `frist_one.html?id=${data[i].id}`)
                    console.log(data[i].h5)
                    console.log(data[i].img)
                    console.log(data[i].p)
                    console.log($('dl dt img').eq(i))
                    $('dl dt img').eq(i).attr('src', data[i].img)
                    $('dl dd h5').eq(i).html(data[i].h5)
                    $('dl dd p').eq(i).html(data[i].p)
                }
            }
        })
    </script>
</body>

</html>